home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++,comp.edu
- Path: uu4news.netcom.com!telesoft!kst
- From: kst@thomsoft.com (Keith Thompson)
- Subject: Re: ANSI C and POSIX (was Re: C/C++ knocks the crap out of Ada)
- X-Nntp-Posting-Host: pulsar
- Message-ID: <DpovII.CC9@thomsoft.com>
- Originator: kst@pulsar
- Sender: news@thomsoft.com (USENET News Admin @flash)
- Organization: Thomson Software Products, San Diego, CA, USA
- References: <JSA.96Feb16135027@organon.com> <dewar.828757752@schonberg> <danpop.828819479@rscernix> <dewar.828879781@schonberg> <4k9qhe$65r@solutions.solon.com> <dewar.828936837@schonberg> <828964950snz@genesis.demon.co.uk> <4kbfup$2vd@news1.mnsinc.com> <4kbl5i$p3@mordred.gatech.edu> <dewar.828992408@schonberg>
- Date: Thu, 11 Apr 1996 08:27:54 GMT
-
- In <dewar.828992408@schonberg> dewar@cs.nyu.edu (Robert Dewar) writes:
- [...]
- > A competent compiler tries to implement 100% of the required standard
- > functionality, plus as much as possible of the expected behavior that
- > goes beyond this standard, consistent with not damaging the quality
- > of code, or the performance of the compiler, too severely.
-
- On the other hand, it's tempting to suggest that a compiler should
- implement 100% of the required functionality and as *little* as possible
- of the expected behavior that goes beyond the standard. For example:
-
- As many instances as possible of erroneous execution are detected
- and raise Program_Error.
-
- No predefined integer types other than Integer, and no predefined
- floating-point types other than Float.
-
- Elaboration order is chosen to *maximize* the likelihood of
- access-before-elaboration errors.
-
- Unchecked_Conversion behaves strangely in some cases.
-
- Access values are not addresses. Different access types are
- represented differently.
-
- The internal representation of a null access value or address is
- not 0.
-
- Perverse task scheduling to the extent allowed by the standard.
-
- Similar ideas can be applied to languages other than Ada.
-
- Porting existing code to such a compiler could be an excellent way to
- filter out bugs and non-portable constructs.
-
- More realistically, it might be a good idea to implement this kind of
- thing as a compiler option; the default behavior should be more forgiving.
-
- --
- Keith Thompson (The_Other_Keith) kst@thomsoft.com <*>
- TeleSoft^H^H^H^H^H^H^H^H Alsys^H^H^H^H^H Thomson Software Products
- 10251 Vista Sorrento Parkway, Suite 300, San Diego, CA, USA, 92121-2718
- This sig uses the word "Exon" in violation of the Communications Decency Act.
-